package com.xujiang.myblog.pagedatasource;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xujiang.myblog.R;

/**
 * Created by xujiang on 2017/4/18.
 */

public class UserFragmentPageData {

    public static void setviewdata(BaseViewHolder helper,String url){
        if(false){
            //此处处理有缓存的本地文件直接获取，
        }else{ //请求网络
            Glide.with(helper.getConvertView().getContext()).load(url).into((ImageView)helper.getView(R.id.user_avatars_imv_userfragment));

        }
    }

}
